import { defineStore } from "pinia";
import { ref } from "vue";

export const useYearStore = defineStore("alerts", () => {
  const year = ref(new Date().getFullYear());
  const selectYear = [year.value - 1, year.value];
  const setYear = (y) => {
    year.value = y;
  };
  return {
    year,
    selectYear,
    setYear,
  };
});
